namespace NHCodeFirst.Extensions
{
    using System.Xml.Linq;

    public static class XmlExtensions
    {
        public static void AddAttribute(this XElement element, string name, object value)
        {
            if (value != null)
                element.Add(new XAttribute(name, value));            
        }
    }
}